<script setup>
import dayjs from 'dayjs'
import moment from 'moment'
const now = new Date()
const other = new Date('2020-11-12 12:00:00')
// dayjs 
const nowFormat = () => {
    return dayjs(now).format('YYYY-MM-DD hh:mm:ss')
}
// moment
const otherFormat = () => {
    return moment(other).format('YYYY-MM-DD hh:mm:ss')
}
</script>

<template>
    <h1>Hello vue3</h1>
    <div>{{ now }}</div>
    <div>{{ nowFormat() }}</div>
    <div>{{ other }}</div>
    <div>{{ otherFormat() }}</div>
</template>
